﻿using System.Windows;

namespace CrazyDrawShape
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void DrawLineClick(object sender, RoutedEventArgs e)
        {
            mainBorder.Child = new DrawLineControl();
        }

        private void DrawCircleClick(object sender, RoutedEventArgs e)
        {
            mainBorder.Child = new DrawCircleControl();
        }

        private void DrawRectangleClick(object sender, RoutedEventArgs e)
        {
            mainBorder.Child = new DrawRectangleControl();
        }

        private void DrawRotateRectangleClick(object sender, RoutedEventArgs e)
        {
            mainBorder.Child = new DrawRotateRectangleControl();
        }

        private void DrawEllipseClick(object sender, RoutedEventArgs e)
        {
            mainBorder.Child = new DrawEllipseControl();
        }

        private void DrawPolygonClick(object sender, RoutedEventArgs e)
        {
            mainBorder.Child = new DrawPolygonControl();
        }
    }
}